function [] = print_int2(fileID,input,dim1,dim2)

    for i=1:dim1
        for j=1:dim2
            fprintf(fileID, '%d ',input(i, j));
        end
    end
    fclose(fileID);

end

